package net.tatu.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import net.tatu.model.Model;
import net.tatu.model.User;

public interface ModelMapper {
    
    public Model get(Model model);
    
    public int insertModel(Model model);

	public int updateModel(Model model);
	
    public List<Model> getModel(@Param("level") int le, @Param("target") int ta, @Param("typeName") String typeName, @Param("pageSize") int pageSize,@Param("startIndex") int startIndex);

    public int countModel(@Param("level") int le, @Param("target") int ta, @Param("typeName") String typeName, @Param("pageSize") int pageSize,@Param("startIndex") int startIndex);

	public List<Model> getSamTargetModelById(@Param("modelId") Long modelId);

}